package com.skp.shaphan.menus;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JMenuItem;

import com.skp.shaphan.ui.dialogs.DevOptionsDialog;

/**
 * Displays the options dialog to changes the development settings
 * @author Stephen Phillips
 *
 */
public class DevOptionsMenuItem extends JMenuItem implements ActionListener {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5036995157422549554L;

	/**
	 * Creates a basic menu item
	 */
	public DevOptionsMenuItem() {
		super("Dev Options");
		this.setMnemonic('O');
		this.addActionListener(this);
	}

	/**
	 * launches the connection dialog
	 */
	@Override
	public void actionPerformed(ActionEvent e) {
		DevOptionsDialog dialog = new DevOptionsDialog();
		dialog.setVisible(true);
	}
}
